﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;

namespace Project_Vital.Dao


{
    public class OrdersDao
    {

        const string connectionString = "Server=NEXTGEN-TECH01;Database=Vital;Trusted_Connection=True";



        private void CreateOrder(Order order)
        {
       //     vord_vital_order newOrder = this.TranformOrder(order);
            vord_vital_order newOrder = this.TranformOrder(order);
            ProjectVitalDataContext dateContext = new ProjectVitalDataContext(connectionString);
            dateContext.vord_vital_orders.InsertOnSubmit(newOrder);
            dateContext.SubmitChanges();
        }

         private Order TransformLinqToBusinessOrder(vord_vital_order order)
        {
            Order dbOrder = new Order();


            /**
            dbCustomer._vcus_customer_id = customer.vcus_customer_id;
            **/

            return dbOrder;
        }

        private vord_vital_order TranformOrder(Order order)
        {
            vord_vital_order dbOrder = new vord_vital_order();


            
          //  dbCustomer.vcus_first_name = customer._vcus_first_name;



           return dbOrder;
        }
    }
}

 
